﻿<UserControl x:Class="MvvmFx.Samples.HowTos.PropertyRehandlers.BoolView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="300">
   
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.517*"/>
            <ColumnDefinition Width="0.483*"/>
        </Grid.ColumnDefinitions>
        
        <TextBlock Text="Value:" TextWrapping="Wrap" FontSize="18.667" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        <TextBlock Grid.Column="1" TextWrapping="Wrap" Text="{Binding IsTrue, Mode=Default, FallbackValue=True}" FontWeight="Bold" FontSize="18.667" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        <Button Content="Set True Act" Grid.Row="1" Command="{Binding SetToTrueAction, Mode=Default}"/>
        <Button Content="Set False Act" Grid.Row="1" Grid.Column="1" Command="{Binding SetToFalseAction, Mode=Default}" />

        <Button Content="Set True Del" Grid.Row="2" Command="{Binding SetToTrueDel, Mode=Default}"/>
        <Button Content="Set False Del" Grid.Row="2" Grid.Column="1" Command="{Binding SetToFalseDel, Mode=Default}" />

        <Button Content="Set True VM" Grid.Row="3" Command="{Binding SetToTrueVM, Mode=Default}"/>
        <Button Content="Set False VM" Grid.Row="3" Grid.Column="1" Command="{Binding SetToFalseVM, Mode=Default}" />

    </Grid>
    
</UserControl>
